package com.Shuang.GameCards;

//定义一个牌类
public class Card {
    private String number;  //牌的数字  {"3", "4" , "5", "6", "7", "8", "9", "10", "J", "Q", "K", "A", "2"}
    private String corlor;  //牌的花色  {"♥", "♠", "♣", "♦"}   {"🤡", "🃏"} -> 小王和大王
    private int size;  //牌的大小

    public Card() {
    }

    public Card(String number, String corlor, int size) {
        this.number = number;
        this.corlor = corlor;
        this.size = size;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getCorlor() {
        return corlor;
    }

    public void setCorlor(String corlor) {
        this.corlor = corlor;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    @Override
    public String toString() {
        return (corlor + number);
    }
}
